package optimizations.lexer;

import java.io.Reader;

/**
 * Implementation of {@link LexerFactory} and
 * {@link CompilationUnitLexerFactory}.
 * 
 * @author ayc44
 */
public class LexerFactory {

  public static final LexerFactory INSTANCE = new LexerFactory();

  /**
   * This constructor is only public because staff feedback requested it; we
   * recommend using the instance defined above instead
   */
  public LexerFactory() {
  }

  public Lexer newLexer(Reader reader) {
    return new Lexer(reader);
  }
}
